import os

'''编写绝对路径'''

BASE_DIR=os.path.dirname(os.path.abspath(__file__))

print(BASE_DIR) # D:\Python\Pycharm-2023.1.1\workspace\TestFramework